import java.util.BitSet;

public class Demo {
    public static void main(String[] args) {
        int[] array = {1,5,10,19,20,22,24};
        MyBitSet myBitSet = new MyBitSet(24);
        for(int i = 0; i < array.length;i++) {
            myBitSet.set(array[i]);
        }
        System.out.println(myBitSet.get(20));
        System.out.println(myBitSet.get(26));
        myBitSet.remove(20);
        System.out.println(myBitSet.get(20));
    }
}
